import './assets/main.css'

import { createApp } from 'vue'
import store from './store'
import App from './App.vue'
// 引入 router
import router from './router'
import axios from './utils/axios'
import './mock'
import 'amfe-flexible'
//引入组件
import { Button, Form, Field, CellGroup, Toast, Tabbar, TabbarItem, Swipe, SwipeItem,
    ActionBar, ActionBarIcon, ActionBarButton, Empty, Cell } from 'vant';
//引入组件样式
import 'vant/lib/index.css';

const app = createApp(App)

// 挂载 router
app.use(router)

//注册组件
app.use(Button)
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Toast);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Swipe);
app.use(SwipeItem);
app.use(ActionBar);
app.use(ActionBarIcon);
app.use(ActionBarButton);
app.use(Empty);
app.use(Cell);

app.config.globalProperties.$axios = axios

app.use(store)
app.mount('#app')
